<?php


namespace app\callback;


class Callback
{
    private $class;

    public function __construct($class)
    {
        $this->class = $class;
    }

    public function callback($method)
    {
        $this->class->$method();
    }
}